package com.bingkaimedia.merchantbeta.app;
 
import com.bingkaimedia.merchantbeta.R;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;


@SuppressLint("NewApi")
public class Notification  extends Activity  {
	 
	 
 	
 	private ImageView img_notif_icon;
 	private TextView lbl_notif_detail; 
 	private Button cmd_notif_ok;   
	private Button cmd_notif_forgot;   
  
	
	
	@Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        //overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);
		Toast.makeText(getApplicationContext(), "back",
				3000).show();
		//Register.this.finish();
    }
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
		overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
        setContentView(R.layout.notification);
         
        inisialisasi();	 
        form_click(); 
		 
    }
	
	
	private void inisialisasi(){ 
		
		
		img_notif_icon = (ImageView) findViewById(R.id.img_notif_icon); 
		lbl_notif_detail = (TextView) findViewById(R.id.lbl_notif_detail); 
        cmd_notif_ok = (Button) findViewById(R.id.cmd_notif_ok); 
        cmd_notif_forgot = (Button) findViewById(R.id.cmd_notif_forgot); 
         
 
        Typeface font = Typeface.createFromAsset(getAssets(), "gisha.ttf");  
         
        lbl_notif_detail.setTypeface(font);
        cmd_notif_ok.setTypeface(font);
        cmd_notif_forgot.setTypeface(font); 
		
        
	}
	
	public void form_click(){
		  

		cmd_notif_ok.setOnClickListener(new OnClickListener() {
				
			@Override
			public void onClick(View v) 
			{

				 //System.out.println("masuk button text 2");
				 Intent intent=new Intent(getApplicationContext(),Forgot_pass.class);
				 startActivity(intent);
				 finish();
			}
		});
		
		cmd_notif_forgot.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) 
			{
				    
				 //System.out.println("masuk button text 2");
				 Intent intent=new Intent(getApplicationContext(),Forgot_pass.class);
				 startActivity(intent);
				 finish();
			}
		});
		
		 
	}
	
	   
	 
}
